package com.cjh.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cjh.common.entity.Role;
import com.cjh.common.response.Result;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 *
 */
public interface RoleService extends IService<Role> {

    Set<String> getAllRoleNamesByUsername(String username);
    Result getAllRole();

    Result getRoleByRoleId(Integer id);

    Result updateRoleByRoleId(Integer id, HashSet list);

    Result updateRole(Role role);

    Result addRole(Role role);

    Result deleteRoleById(Integer id);

    Result deleteRoleByIdList(List<Integer> list);
}
